package top.oylan.manager.entity.mp;

import lombok.Data;

/**
 * @Author abduahad
 * @Description ${description}
 * @Date 2019-08-14
 */
@Data
public class MpResult<T> {

    private int code;

    private String msg;

    private T data;

    public MpResult(){
        this.code = 200;
        this.msg = "成功";
    }

    public MpResult(int code,String msg){
        this.code = code;
        this.msg =msg;
    }

    public MpResult(int code,String msg,T data){
        this(code,msg);
        this.data = data;
    }
}
